# Automatically generated Makefile for project: sdl_basics
# Created on  by gaten for sdltutorials.com
# Comments, suggestions and bugs email: gaten DOT net AT gmail DOT com

#MICRO DEFINITION FOR CORE LIBRARY BEGIN
ifndef CORE_PATH
        CORE_PATH=/home/sunny/Workspace/core-2.1.1
endif

include $(CORE_PATH)/Make.config

CORE_INC=-I. -I$(CORE_PATH)/inc -I$(CORE_PATH)/mpfr/include \
         -I$(CORE_PATH)/gmp/include
CORE_LIB=-L$(CORE_PATH)/lib -L$(CORE_PATH)/mpfr/lib -L$(CORE_PATH)/gmp/lib \
         -lcore++$(VAR) -lmpfr -lgmp

COREX_LIB_LEVEL=-lcoreex++$(VAR)_level

COREX_LIB_LEVEL3=-lcorex++$(VAR)_level3
COREX_LIB_LEVEL2=-lcorex++$(VAR)_level2
COREX_LIB_LEVEL1=-lcorex++$(VAR)_level1

#MICRO DEFINITION FOR CORE LIBRARY END

# Compiler
CC=g++


# Objects
OBJECTS=main.o meshintersection.o 

# Compiler flags
CPPFLAGS=-Wall -g `sdl-config --cflags` -I../xmesh -I../sdlui $(CORE_INC) -Wno-deprecated -g

# Linker flags
LDFLAGS=`sdl-config --libs` -lSDL -lSDL_image -lGL -lGLU -lglut $(CORE_LIB)


main: main.o meshintersection.o
	$(CC) main.o meshintersection.o $(LDFLAGS) -o main

main.o : main.cpp 
	$(CC) $(CPPFLAGS) -c main.cpp


meshintersection.o : meshintersection.cpp booleanmesh.h
	$(CC) $(CPPFLAGS) -c meshintersection.cpp


# cleanup
clean:
	rm -rf $(OBJECTS)

# EOF

